package easystudy.java;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import easystudy.dao.BoardDao;

@Controller
public class GetJavaListController {
	
	private BoardDao boardDao;
	
	public void setBoardDao(BoardDao boardDao){
		this.boardDao = boardDao;
	}
	
	@RequestMapping(value="/java_list.ja")
	protected ModelAndView doGetJavaListProcess(@RequestParam("page")int page, HttpServletRequest req){
		
		ModelAndView mav = new ModelAndView();
		mav.setViewName("java_list");
		mav.addObject("current",page);
		
		return mav;	
	}

}
